package com.workplan.client.modules.staff;

import net.customware.gwt.presenter.client.widget.WidgetDisplay;

import com.general.client.basewidget.BaseWidget;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class AssembleStaff extends BaseWidget implements
		AssembleStaffPresenter.Display {

	@UiField(provided = true)
	Widget createEmployee;

	@UiField(provided = true)
	Widget currentEmployees;

	@UiField(provided = true)
	Widget pastEmployees;

	@UiField
	Label hintLabel;

	private static AssembleStaffUiBinder uiBinder = GWT
			.create(AssembleStaffUiBinder.class);

	interface AssembleStaffUiBinder extends UiBinder<Widget, AssembleStaff> {
	}

	public AssembleStaff() {
	}

	@Override
	public void init() {
		initWidget(uiBinder.createAndBindUi(this));
		hintLabel.setText("Hint: Click on any value to edit it");
	}

	@Override
	public void setCreateEmployee(WidgetDisplay display) {
		createEmployee = display.asWidget();
	}

	@Override
	public void setCurrentEmployees(WidgetDisplay display) {
		currentEmployees = display.asWidget();
	}

	@Override
	public void setPastEmployees(WidgetDisplay display) {
		pastEmployees = display.asWidget();
	}

}
